package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * @IncomeFlow
 * @收益流水记录(income_flow)
 * @version : Ver 1.0
 */
@TableName("income_flow")
public class IncomeFlow implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:订单id
	 * @字段:order_id BIGINT(19)
	 */
	private Long orderId;
	/**
	 * 备注:订单id
	 */
	@TableField(exist = false)
	private Orders order;


	/**
	 * @备注:1已完成2等待中
	 * @字段:status INT(10)
	 */
	private Integer status;


	/**
	 * @备注:会员id
	 * @字段:muser_id BIGINT(19)
	 */
	private Long muserId;
	/**
	 * 备注:会员id
	 */
	@TableField(exist = false)
	private Muser muser;


	/**
	 * @备注:收益金额
	 * @字段:income DECIMAL(5)
	 */
	private java.math.BigDecimal income;


	/**
	 * @备注:
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime;


	/**
	 * @备注:
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date uptDatetime;


	public IncomeFlow(){
	}

	public IncomeFlow(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}

	public void setOrderId(Long orderId) {
			this.orderId = orderId;
			}

	public Long getOrderId() {
			return this.orderId;
	}
	public void setOrder(Orders order) {
		this.order = order;
	}

	public Orders getOrder() {
		return this.order;
	}

	public Date getUptDatetime() {
		return uptDatetime;
	}

	public void setUptDatetime(Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setMuserId(Long muserId) {
			this.muserId = muserId;
			}

	public Long getMuserId() {
			return this.muserId;
	}
	public void setMuser(Muser muser) {
		this.muser = muser;
	}

	public Muser getMuser() {
		return this.muser;
	}


	public void setIncome(java.math.BigDecimal income) {
		this.income = income;
	}

	public java.math.BigDecimal getIncome() {
		return this.income;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}
}
